<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
	template="/WEB-INF/templates/public/default.xhtml">
	<ui:define name="head">
		<h:outputStylesheet name="css/index.css"></h:outputStylesheet>
		<h:outputScript name="js/public/jquery.SuperSlide.2.1.3.js"></h:outputScript>
	</ui:define>
	<ui:define name="content">
		<div class="sub-container">
			<div class="sub_wrap">
	            <div class="loginTypeBox">
					<h3>选择登录入口</h3>
					<ul class="loginListBox">
						<li><a href="/public/supplierExhibition.xhtml"> <img src="#{resource['images/btn_zjjg.png']}"
								alt="" /> <span>中介机构入口</span>
						</a></li>
						<li><a href="/public/buyerExhibition.xhtml"> <img src="#{resource['images/btn_cgr.png']}" alt="" />
								<span>采购人入口</span>
						</a></li>
						<li><a href="/public/publicExhibition.xhtml"> <img src="#{resource['images/btn_zjjg.png']}"
								alt="" /> <span>游客来访入口</span>
						</a></li>

					</ul>
				</div>
				<!--首页内容部分-->
				<div class="slideTxtBox">
					<div class="hd">
						<ul>
							<li>工作动态</li>
							<li>政策文件</li>
							<li>外地经验</li>
						</ul>
					</div>
					<div class="bd">
						<ul>
							<div class="txtMarquee-top">
								<div class="bd">
									<p:link outcome="/public/ArticleList.xhtml">
										<span class="more">更多&gt;&gt;</span>
										<f:param name="categoryId" value="#{articleQueryBean.findCategory('工作动态').id}"></f:param>
									</p:link>
									<ul class="infoList">
										<p:repeat
												value="#{articleQueryBean.queryArticle('工作动态')}"
												var="_article"
												styleClass="msg-list"
											>
											<li>
												<span class="date">
													<h:outputText value="#{_article.createDate}">
														<f:convertDateTime pattern="MM-dd" />
													</h:outputText>
												</span>
												<p:link outcome="/public/Article.xhtml" target="_blank" >
													<f:param name="articleId" value="#{_article.id}" ></f:param>
													<h:outputText value="#{_article.title}" />
												</p:link>
											</li>
										</p:repeat>
									</ul>
								</div>
							</div>
						</ul>
						<ul>
							<div class="txtMarquee-top">
								<div class="bd">
									<p:link outcome="/public/ArticleList.xhtml">								
										<span class="more">更多&gt;&gt;</span>
										<f:param name="categoryId" value="#{articleQueryBean.findCategory('政策文件').id}"></f:param>
									</p:link>
									<ul class="infoList">
										<p:repeat
												value="#{articleQueryBean.queryArticle('政策文件')}"
												var="_article"
												styleClass="msg-list"
											>
											<li>
												<span class="date">
													<h:outputText value="#{_article.createDate}">
														<f:convertDateTime pattern="MM-dd" />
													</h:outputText>
												</span>
												<p:link outcome="/public/Article.xhtml" target="_blank" >
													<f:param name="articleId" value="#{_article.id}" ></f:param>
													<h:outputText value="#{_article.title}" />
												</p:link>
											</li>
										</p:repeat>	
									</ul>
								</div>
							</div>
						</ul>
						<ul>
							<div class="txtMarquee-top" >
								<div class="bd">
									<p:link outcome="/public/ArticleList.xhtml">								
										<span class="more">更多&gt;&gt;</span>
										<f:param name="categoryId" value="#{articleQueryBean.findCategory('外地经验').id}"></f:param>
									</p:link>
									<ul class="infoList">
										<p:repeat
												value="#{articleQueryBean.queryArticle('外地经验')}"
												var="_article"
												styleClass="msg-list"
											>
											<li>
												<span class="date">11-11</span>
												<p:link outcome="/public/Article.xhtml" target="_blank" >
													<f:param name="articleId" value="#{_article.id}" ></f:param>
													<h:outputText value="#{_article.title}" />
												</p:link>
											</li>
										</p:repeat>	
									</ul>
								</div>
							</div>
							<script>
	                            $(".txtMarquee-top").slide({mainCell:".bd ul",autoPlay:false,effect:"topMarquee",vis:6,interTime:50});
	                        </script>
						</ul>
					</div>
				</div>
				<script type="text/javascript">$(".slideTxtBox").slide();</script>
				<div class="txtMarquee-top1">
					<div class="hd">
						<span class="tzgg_Title"></span>
						<h3>通知公告</h3>
						<p:link outcome="/public/ArticleList.xhtml" target="_blank">								
							<span class="more">更多&gt;&gt;</span>
							<f:param name="categoryId" value="#{articleQueryBean.findCategory('通知公告').id}"></f:param>
						</p:link>	
					</div>
					<div class="bd">
						<ul class="infoList">
							<p:repeat
									value="#{articleQueryBean.queryArticle('通知公告')}"
									var="_article"
									styleClass="msg-list"
								>
								<li>
									<p:link outcome="/public/Article.xhtml" target="_blank" >
										<f:param name="articleId" value="#{_article.id}"></f:param>
										<span class="date">
											<h:outputText value="#{_article.createDate}">
												<f:convertDateTime pattern="MM-dd" />
											</h:outputText> 
										</span>
										<h:outputText value="#{_article.title}" />
									</p:link>	
								</li>
							</p:repeat>	
						</ul>
					</div>
				</div>

				<script type="text/javascript">
	                $(".txtMarquee-top1").slide({mainCell:".bd ul",autoPlay:false,effect:"topMarquee",vis:6,interTime:50});
	            </script>
				
				<!--公告公示-->
				<div class="slideTxtBoxGongGao">
					<div class="hd">
						<ul>
							<li>采购公告</li>
							<li>中选公示</li>
							<li>结果公告</li>
							<li>废标公示</li>
						</ul>
						
					</div>
					<div class="bd">
						<ul>
							<li>
								<p:link outcome="/public/BulletinArticleList.xhtml" target="_blank">
									<span class="more">更多&gt;&gt;</span>
								</p:link>	
								<ol>
									<li class="ggContentTitle">项目名称</li>
									<li class="ggContentTitle">资质要求</li>
									<li class="ggContentTitle">日期</li>
								</ol>
								<p:repeat  var="_bulletin" value="#{indexService.getAudittedBulletinList(5)}" >
									<c:set var="title" value="关于为#{_bulletin[1]}选取中介机构的公告" />
									<ol>
										<li>
											<p:link  outcome="/public/BulletinArticleView.xhtml" title="#{title}" target="_blank">
												<f:param name="bulletinId" value="#{_bulletin[0]}"></f:param>
												<f:param name="showSupplier" value="false"></f:param>
												<f:param name="bulletinTitle" value="采购公告"></f:param>
												<f:param name="title" value="#{title}"></f:param>
												#{title}
											</p:link>	
										</li>
										<li><h:outputText value="#{_bulletin[2]}" title="#{_bulletin[2]}" /></li>
										<li>
											<h:outputText value="#{_bulletin[3]}">
												<f:convertDateTime pattern="yyyy-MM-dd"/>
											</h:outputText>
										</li>
									</ol>
								</p:repeat>
							</li>
						</ul>
						<ul>
							<li>
								<p:link outcome="/public/PublicityBulletinArticleList.xhtml" target="_blank">
									<span class="more">更多&gt;&gt;</span>
								</p:link>	
								<ol>
									<li class="ggContentTitle">项目名称</li>
									<li class="ggContentTitle">资质要求</li>
									<li class="ggContentTitle">日期</li>
								</ol>
								<p:repeat  var="_bulletin" value="#{indexService.getPublicityBulletinList(5)}" >
									
									<ol>
										<li>
											<c:set var="title" value="关于为#{_bulletin[1]}选取中介机构的公告" />
											<p:link  outcome="/public/ShowingBulletinArticleView.xhtml" title="#{title}" target="_blank">
												<f:param name="bulletinId" value="#{_bulletin[0]}"></f:param>
												<f:param name="showSupplier" value="true"></f:param>
												<f:param name="bulletinTitle" value="中选公示"></f:param>
												<f:param name="title" value="#{title}"></f:param>
												#{title}
											</p:link>	
										</li>
										<li><h:outputText value="#{_bulletin[2]}" title="#{_bulletin[2]}" /></li>
										<li>
											<h:outputText value="#{_bulletin[3]}">
												<f:convertDateTime pattern="yyyy-MM-dd"/>
											</h:outputText>
										</li>
									</ol>
								</p:repeat>
							</li>
						</ul>
						<ul>
							<li>
								<p:link outcome="/public/AgreedBulletinArticleList.xhtml" target="_blank">
									<span class="more">更多&gt;&gt;</span>
								</p:link>	
								<ol>
									<li class="ggContentTitle">项目名称</li>
									<li class="ggContentTitle">资质要求</li>
									<li class="ggContentTitle">日期</li>
								</ol>
								<p:repeat  var="_bulletin" value="#{indexService.getAgreedBulletinList(5)}" >
									<c:set var="title" value="关于为#{_bulletin[1]}选取中介机构的公告" />
									<c:set var="plusOverTime" value="#{indexService.getPlusOneDate(_bulletin[3])}" />
									<ol>
										<li>
											<c:set var="title" value="关于为#{_bulletin[1]}选取结果的公告" />
											<p:link  outcome="/public/AgreedBulletinArticleView.xhtml" title="#{title}" target="_blank">
												<f:param name="bulletinId" value="#{_bulletin[0]}"></f:param>
												<f:param name="showSupplier" value="true"></f:param>
												<f:param name="bulletinTitle" value="结果公告"></f:param>
												<f:param name="title" value="#{title}"></f:param>
												#{title}
											</p:link>	
										</li>
										<li><h:outputText value="#{_bulletin[2]}" title="#{_bulletin[2]}" /></li>
										<li>
											<h:outputText value="#{plusOverTime}">
												<f:convertDateTime pattern="yyyy-MM-dd"/>
											</h:outputText>
										</li>
									</ol>
								</p:repeat>
							</li>
							</ul>
							<ul>
							<li>
								<p:link outcome="/public/ZfBulletinArticleList.xhtml" target="_blank">
									<span class="more">更多&gt;&gt;</span>
								</p:link>	
								<ol>
									<li class="ggContentTitle">项目名称</li>
									<li class="ggContentTitle">资质要求</li>
									<li class="ggContentTitle">日期</li>
								</ol>
								<p:repeat  var="_bulletin" value="#{zfBulletinList.resultList}" size="#{zfBulletinList.resultCount &gt; 6 ? 6 : zfBulletinList.resultCount}">
									<c:set var="title" value="关于为#{_bulletin.projectName}选取中介机构的公告" />
									<ol>
										<li>
											<c:set var="title" value="关于为#{_bulletin.projectName}选取结果作废的公示" />
											<p:link  outcome="/public/AgreedBulletinArticleView.xhtml" title="#{title}" target="_blank">
												<f:param name="bulletinId" value="#{_bulletin.id}"></f:param>
												<f:param name="showSupplier" value="true"></f:param>
												<f:param name="bulletinTitle" value="作废公示"></f:param>
												<f:param name="title" value="#{title}"></f:param>
												<f:param name="hasZF" value="#{true}"></f:param>
												#{title}
											</p:link>	
										</li>
										<li><h:outputText value="#{_bulletin.bulletinReqStr}" title="#{_bulletin.bulletinReqStr}" /></li>
										<li>
											<h:outputText value="#{_bulletin.getAgreedBulletinDate()}">
												<f:convertDateTime pattern="yyyy-MM-dd"/>
											</h:outputText>
										</li>
									</ol>
								</p:repeat>
							</li>
						
						</ul>
					</div>
				</div>
				<script type="text/javascript">$(".slideTxtBoxGongGao").slide();</script>
				<div class="txtMarquee-top1" style="width: 22%;">
					<div class="hd">
						<span class="tzgg_Title"></span>
						<h3>信用监督</h3>
						<p:link outcome="/public/SupplierList.xhtml" target="_blank">
							<span class="more">更多&gt;&gt;</span>
						</p:link>
					</div>
					<div class="bd">
						<ul class="infoList">
							<p:repeat
									var="_ss" value="#{bestServiceSupplierList.resultList}" size="#{bestServiceSupplierList.resultCount &gt; 7 ? 7 : bestServiceSupplierList.resultCount}"
							>
								<li>
									<p:link outcome="/public/SupplierView.xhtml">
										<f:param name="serviceSupplierId" value="#{_ss.id}"></f:param>
										<h:outputText value="#{_ss.cnname}" />
									</p:link>
									<span style="display: inline-block;width: 30px;">#{_ss.levelLabel}</span>
								</li>
							</p:repeat>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<ui:include src="/WEB-INF/templates/public/include/copyRight.xhtml"></ui:include>
	
	</ui:define>
</ui:composition>
